package robot;

 
import renderables.RenderablePoint;
import java.util.Vector;

public class RayPoint {

	private RenderablePoint point;
	private double goldPotential;
	private boolean isInGoldDistance;
	private double obstaclePotential;
	private double sumPotentials;
	private double angle;
	public Vector<RenderablePoint> hitPoints;
	
	public RayPoint() {
		hitPoints = new Vector<RenderablePoint>();
	}
	
	public RenderablePoint getPoint() {
		return point;
	}
	public void setPoint(RenderablePoint point) {
		this.point = point;
	}
	public double getGoldPotential() {
		return goldPotential;
	}
	public void setGoldPotential(double g) {
		goldPotential = g;
	}
	public boolean isInGoldDistance() {
		return isInGoldDistance;
	}
	public void setInGoldDistance(boolean isInGoldDistance) {
		this.isInGoldDistance = isInGoldDistance;
	}
	public double getObstaclePotential() {
		return obstaclePotential;
	}
	public void setObstaclePotential(double obstaclePotential) {
		this.obstaclePotential = obstaclePotential;
	}
	public boolean isHasHit() {
		return hitPoints.size()>0;
	}
	public void addHitPoint(RenderablePoint p) {
		hitPoints.add(p);
	}
	public double getSumPotentials() {
		return sumPotentials;
	}
	public void setSumPotentials(double sumPotentials) {
		this.sumPotentials = sumPotentials;
	}
	public double getAngle() {
		return angle;
	}
	public void setAngle(double angle) {
		this.angle = angle;
	}
	
}
